import { setDomTitle } from "@/utils";

// 创建路由守卫
export function createRouterGuards(router: Router) {
  router.beforeEach((to, _, next) => {
    setDomTitle(to.meta.title);
    next();
  });
}
